<?php /*@var $tree Tree */?>
<?php if(isset($parentId)): ?>
<div class="menu_box">
<div class="menu_title" > <?php echo $treeName;?></div>
<?php if(!empty($subCategories)): ?>
    <?php foreach( $subCategories as $cat ):?>
        <div class="menu_item" style="text-indent: 10px;">
            <?php echo link_to(
                            image_tag(
                                'arrow.png'
                                , array(
                                    'alt' => ''
                                    , 'class' => 'image_arrow'
                                )
                            ) . 
                          $cat['obj']->getName()
                          , 'tree/page?id=' . $cat['obj']->getId()
                          , array('class' => '')); ?>
        </div>
        
    <?php endforeach;?>
<?php endif; ?>
</div>
<?php endif; ?>